﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;


namespace TyMES.ViewModel.baseinformation.BatchCompilationsVMs
{
    public partial class BatchCompilationsTemplateVM : BaseTemplateVM
    {
        [Display(Name = "工厂编码")]
        public ExcelPropety factoryCode_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.factoryCode);
        [Display(Name = "产线编码")]
        public ExcelPropety lineCode_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.lineCode);
        [Display(Name = "工位编码")]
        public ExcelPropety stationCode_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.stationCode);
        [Display(Name = "所属工单")]
        public ExcelPropety orderCode_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.orderCode);
        [Display(Name = "所属排程")]
        public ExcelPropety scheduleCode_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.scheduleCode);
        [Display(Name = "物料编码")]
        public ExcelPropety materialCode_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.materialCode);
        [Display(Name = "物料名称")]
        public ExcelPropety materialName_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.materialName);
        [Display(Name = "批次号")]
        public ExcelPropety batchCode_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.batchCode);
        [Display(Name = "批次料单次消耗量")]
        public ExcelPropety batchSingleCostQty_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.batchSingleCostQty);
        [Display(Name = "批次料添加量")]
        public ExcelPropety batchAddQty_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.batchAddQty);
        [Display(Name = "批次料余量")]
        public ExcelPropety batchMarginQty_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.batchMarginQty);
        [Display(Name = "是否启用")]
        public ExcelPropety isUse_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.isUse);
        [Display(Name = "预留域1")]
        public ExcelPropety Filed1_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.Filed1);
        [Display(Name = "预留域2")]
        public ExcelPropety Filed2_Excel = ExcelPropety.CreateProperty<BatchCompilations>(x => x.Filed2);

	    protected override void InitVM()
        {
        }

    }

    public class BatchCompilationsImportVM : BaseImportVM<BatchCompilationsTemplateVM, BatchCompilations>
    {

    }

}
